CPP = g++
CPPRULE = -std=c++11
SRCS = main.cpp
OBJS = $(SRCS:.cpp=.o)
TARGET = test
TEX_FILE = report


all: $(TARGET) doc report

$(TARGET): $(OBJS)
	$(CPP) $(CPPRULE) $(OBJS) -o $(TARGET)

doc: $(SRCS)
	doxygen Doxyfile

$(TEX_FILE): 
	xelatex $(TEX_FILE).tex
	xelatex $(TEX_FILE).tex

clear:
	rm -f report.aux report.log report.toc
clean:
	rm -f $(OBJS) $(TARGET)  report.pdf report.aux report.log main.o main doxygen_warnings.log HybridCalculator.tag report.toc
	rm -rf output latex

.PHONY: all clean doc report